function asyncImportDefault(module) {
  return new Promise((resolve, reject) => {
    import(module).then((data) => {
      resolve(data.default);
    }, reject);
  });
}
function toLine(name) {
  return name.replace(/([A-Z])/g, '-$1').toLowerCase();
}
const eslintKuankuanConfig = new Proxy(Object.create(null), {
  get(_, name) {
    if (typeof name !== 'string') {
      throw new Error('name must be a string');
    }
    return asyncImportDefault(`./configs/${toLine(name)}.js`);
  },
  set(){return false;},
  deleteProperty(){return false;},
});
export default eslintKuankuanConfig;
